package com.toolkit.module.calculation.bean;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 贷款信息
 * </p>
 *
 * @author Maoco
 * @since 2025-06-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class LoanInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 贷款类型 1商业贷款  2公积金贷款 3组合贷款
     */
    private Integer loanType;

    /**
     * 还款方式 1等额本息  2等额本金
     */
    private Integer repaymentType;

    /**
     * 商业贷款计算方式 1按贷款总额  2按单价
     */
    private Integer calculationType;

    /**
     * 商业贷款总额
     */
    private BigDecimal commercialLoanTotalAmount;

    /**
     * 商业贷款期限
     */
    private Integer commercialLoanTerm;

    /**
     * 商业贷款利率
     */
    private BigDecimal commercialLoanLendingRate;

    /**
     * 公积金贷款总额
     */
    private BigDecimal providentFundLoanTotalAmount;

    /**
     * 公积金贷款期限
     */
    private Integer providentFundLoanTerm;

    /**
     * 公积金贷款利率
     */
    private BigDecimal providentFundLoanLendingRate;

    /**
     * 房子单价
     */
    private BigDecimal unitRice;

    /**
     * 房子面积
     */
    private BigDecimal area;

    /**
     * 首付比例
     */
    private BigDecimal downPaymentRatio;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;


}
